<#if RequestParameters['page'] == 'logoCrop'>
  <#assign script_controller = 'group/group_logo_crop' />
  <#assign settingNav = 'logo' />
</#if>

<#if RequestParameters['page'] == 'backGroundLogoCrop'>
  <#assign script_controller = 'group/group_backgroundlogo_crop' />
  <#assign settingNav = 'background' />
</#if>

<@block_title "${groupinfo.title}小组"/>

<#include '/group/setting-layout.ftl'/>

<#macro blockGroupSettingBody>

<form id="avatar-crop-form" method="post" enctype="multipart/form-data">
  <div class="form-group clearfix">
    <div class="col-md-offset-2 col-md-8 controls">
      <img src="${file_url(pictureUrl)}" id="avatar-crop" width="${scaledSize.width}" height="${scaledSize.height}" data-natural-width="${naturalSize.width}" data-natural-height="${naturalSize.height}" style="max-width:100%"/>
      <div class="help-block">提示：请选择图片裁剪区域。</div>
    </div>
  </div>
  <div class="form-group clearfix">
    <div class="col-md-offset-2 col-md-8 controls">
      <input type="hidden" name="x">
      <input type="hidden" name="y">
      <input type="hidden" name="width">
      <input type="hidden" name="height">
      <button class="btn btn-fat btn-primary" id="upload-picture-btn" type="submit">保存</button>
    </div>
  </div>
  <input type="hidden" name="_csrf_token" value="${csrf_token('site')}">
  
</form>

</#macro>